package cn.broadsense.biz.bo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: pengxin
 * @create: 2024-09-10 11:24
 * @Version 1.0
 **/
@ApiModel(value = "图层")
@Data
public class LayerBo implements Serializable {

    private static final long serialVersionUID = 2764956389392634556L;

    @NotBlank(message = "图层名称不能为空")
    @ApiModelProperty(value = "图层名称")
    private String name;


    @NotNull(message = "图层类型排序不能为空")
    @ApiModelProperty(value = "图层排序")
    private Integer sort;

    @ApiModelProperty(hidden = true)
    @JsonIgnore
    private Long id;
}
